<div style="padding: 15px;">
  <form class="layui-form" action="<?=url('admin/add')?>">
    <div class="layui-form-item">
      <label class="layui-form-label">文案标题</label>
      <div class="layui-input-block">
        <input type="text" name="title" required  lay-verify="required" placeholder="请输入文案标题" autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">文案分类</label>
      <div class="layui-input-block">
            <select name="zxwa_cat_id" required lay-verify="required">
                <option value="">请选择分类</option>
                <?php foreach($lists as $k => $v):?>
                    <option value="<?=$v['id']?>"><?=$v['cat_title']?></option>
                <?php endforeach;?>
            </select>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">文案内容</label>
      <div class="layui-input-block">
           <textarea name="content" style="min-height:300px;" placeholder="请输入文案内容" required  lay-verify="required" class="layui-textarea"></textarea>
      </div>
    </div>
        <div class="layui-form-item">
          <div class="layui-input-block">
            <button class="layui-btn"  lay-submit lay-filter="myform">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
          </div>
        </div>
  </form>
</div>
<script>
layui.use(['form', 'upload'], function(){
  var $ = layui.$
  ,upload = layui.upload
  ,form = layui.form;
  form.render();
});
</script>
